#ifndef ELEMENTMAP_H
#define ELEMENTMAP_H

#include <QPixmap>
#include <QNetworkAccessManager>

class ElementMap:public QObject
{
    Q_OBJECT
public:
    ElementMap(int layer, int x, int y);
    bool isEqual(int layer, int x, int y);
    const QPixmap& getMap();
    static void setMapName(QString map_name);
    static void setHost(QString host);
    static void setPort(QString port);
private:
    static QNetworkAccessManager manager;
    static QString map_name;
    static QString host;
    static QString port;
    int layer;
    int x;
    int y;
    QPixmap map;
    QNetworkReply* reply;
signals:
    void map_update();
};

#endif // ELEMENTMAP_H
